@import './custom.less';

@header: header1;
.@{header} {
  height: 64px;
  background: @template-nav-bg-color;
  width: 100%;
  z-index: 970;
  box-shadow: 0 5px 8px fade(#fff, 15);
  //position: relative;
  display: flex;
  //flex-direction: column;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  top: 0;
  &-logo {
    //display: inline-block;
    //position: absolute;
    //left: 4%;
    //width: 50px;
    //line-height: 64px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    & img {
      vertical-align: middle;
      display: inline-block;
      width: 100%;
      height: 100%;
    }
    & a {
      display: block;
    }
  }
  &-nav {
    float: right;
    line-height: 64px;
    position: relative;
    & .ant-menu-horizontal {
      border-bottom-color: transparent;
    }
    & .ant-menu {
      background: transparent;
      color: @template-text-color-light;
      line-height: 62px;
      height: 100%;
      & li {
        float: left;
        text-align: center;
        width: 100px;
      }
    }
    & .ant-menu-horizontal > .ant-menu-item-active {
      color: @link-hover-color;
      border-bottom-color: @link-hover-color;
    }
  }
  &-user {
    float: right;
    margin-right: 4%;
    line-height: 62px;
    // height: 64px;
    & .help {
      width: 100px;
      text-align: center;
      font-size: 22px;
      border-left: 1px solid fade(@line-color, 5);
      & .anticon {
        vertical-align: middle;
      }
      & span {
        display: inline-block;
        margin-left: 10px;
        font-size: 12px;
        line-height: 22px;
      }
    }
    & .user {
      font-size: 14px;
      text-align: right;
      width: 100px;
      border-left: 1px solid fade(@line-color, 5);
      & .img {
        margin-left: 0;
        & img {
          vertical-align: middle;
        }
      }
      & span {
        display: inline-block;
        margin-left: 10px;
        font-size: 12px;
        line-height: 24px;
      }
    }
    & a {
      display: inline-block;
      color: #fff;
    }
    & a:hover {
      color: @primary-color;
    }
  }
}
